/*
 * @Description: 
 * @Autor: zhangbing
 * @Date: 2021-07-28 21:11:18
 * @LastEditors: zhangbing
 * @LastEditTime: 2021-07-28 21:13:03
 */

function counterReducer(data) {
    function plus() {
        return data.result + 1
    }

    function minus() {
        return data.result -1
    }

    return {
        plus,
        minus
    }
}

export default counterReducer
